export function checkUserAuth(auth: number){
   const userDate =  JSON.parse(localStorage.getItem("userInfo"));
   if (auth ===  0){
      if (userDate.userAuth ==='' || userDate.userAuth === null){
         return true
      }
      return false;
   }
   console.log(userDate)
   console.log("鉴权",userDate.userAuth)
   return (auth == userDate.userAuth)
}
